package com.hejia.alauda.event;

import org.springframework.context.ApplicationEvent;

public class MessageEvent extends ApplicationEvent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8591763017953632455L;
	
	private int what;
	
	public Object arg1 = null;
	public Object arg2 = null;
	
	public MessageEvent(Object source) {
		super(source);
	}
	
	public MessageEvent(int what, Object source) {
		this(source);
		this.what = what;
	}
	
	public int getWhat() {
		return what;
	}

	public void setWhat(int what) {
		this.what = what;
	}

	@Override
	public String toString() {
		return "what:" + what + ";source:" + source;
	}
}
